const Filter = function(key, value) {
  if (key === "program_type") {
    switch (value) {
      case "电影":
        return 0;
      case "电视剧":
        return 1;
      case "综艺":
        return 2;
      case "动漫":
        return 3;
    }
  }
  if (key === "type") {
    return value === "全部类型" ? "" : value;
  }
  if (key === "time") {
    return value === "全部时间" ? "" : value;
  }
  if (key === "area") {
    return value === "全部地区" ? "" : value;
  }
  if (key === "welcome") {
    switch (value) {
      case "最近热映":
        return "play";
      case "最近上映":
        return "addTime";
      case "最受好评":
        return "hits";
      default:
        return "";
    }
  }
  return value;
};

export default Filter;
